package com.wanshu.config;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

public class LogAdvice implements MethodBeforeAdvice {

    //引介
    @Override
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        //织入
        System.out.println("在方法前插入日志信息");
    }
}
